package com.example.lib_http

import retrofit2.Retrofit

object NetworkFactory {
    lateinit var retrofit:Retrofit
    fun factory(type: HttpType):Retrofit{
        retrofit = when(type){
            HttpType.NONE -> NoneRetrofitImpl().createRetrofit()
            HttpType.TOKEN-> TokenRetrofitImpl().createRetrofit()
        }
        return retrofit
    }
}